#include "widget.h"
#include "ui_widget.h"
#include<QPushButton>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton* qb = new QPushButton(this);
    qb->setText("关闭");
    connect(qb,&QPushButton::clicked,this,&Widget::close);
    qb->move(400,400);

}

Widget::~Widget()
{
    delete ui;
}

